<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-用户列表">
</@frame.head>

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 首页创建静态页面 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<form method="post" name="query_user_form"  id="query_user_form" action="${contextPath}/user/user_list" >    
   <input type="hidden" name="page" value="${pagination.pageNo}"  id="page" />                        
    <div class="text-c">
        <table class="table">
           <tr>  
           <td width="60px">创建密码：</td>
           <td width="200px"><input type="password" class="input-text  radius"   placeholder="创建密码" id="indexVilidate" name="indexVilidate" ></td>   
           <td><input class="btn btn-success radius" type="button"  onclick="build();"  value="创建" /></td>  
          </tr>
      </table>
    </div>
</form>
</div>
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/brand/query_brand.js"></script>
<script type="text/javascript">
var path="${contextPath}";

function build(){
	var indexVilidate=$("#indexVilidate").val();
	layer.confirm("确定创建静态页面吗?",function(){
		  $.ajax({
				url : path+"/user/buildIndexPage",
				cache : false,
				data : {
					"indexVilidate":indexVilidate},
				type : 'post',
				dataType : 'html',
				error : function() {
					layer.alert("操作失败!");
				},
				success : function(message) {
					layer.alert(message);
				}
		  });
	});
}
</script>